package com.sxit.tdf.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxit.tdf.server.entity.FileApprove;
import com.sxit.tdf.server.entity.bo.FileApproveInfoBo;
import com.sxit.tdf.server.entity.vo.InsertApproveFileVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * 服务类
 *
 * @author 橙子高
 * @since 2022-03-19
 */
public interface IFileApproveService extends IService<FileApprove> {
  Boolean upLoadApproveFile(InsertApproveFileVo insertApproveFileVo, MultipartFile file)
      throws IOException;

  List<FileApproveInfoBo> getPrivateApproveFileList();

  void cancelFileApprove(String fileId, String loginIdAsString);

  List<FileApproveInfoBo> getDeptApproverList(Integer deptId);

  Boolean reUpLoadApproveFile(InsertApproveFileVo insertApproveFileVo, MultipartFile file)
      throws IOException;
}
